<%@ Page Language="vb" AutoEventWireup="false" Codebehind="UpdateReason.aspx.vb" Inherits="ccapps.Web.page.Update_Reason" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<TITLE>WebForm1</TITLE>
	</HEAD>
	<script language="javascript">		
		function isNumeric(str)		
		{	var len= str.length;
			if (len==0)
				return false;
			//else
			var p=0;
			var ok= true;
			var ch= "";
			while (ok && p<len)
			{
				ch= str.charAt(p);
				if ('0'<=ch && ch<='9')
				p++;
				else
				ok= false;
			}
			return ok;
		}
		function numericValue(str)
		{
			if (isNumeric(str)==false)
			{
				alert("Please enter numeric value!!!");
				document.all("TextBox2").focus();
				return "NaN";
			}
		}
	</script>
	<form id="Form2" method="post" onsubmit="return isnumeric(txt_search.text)" runat="server">
		<input id="proc" type="hidden" name="proc" runat="server">
		<TABLE id="Table1" cellSpacing="0" cellPadding="0" width="100%" border="0">
			<tr>
				<TD class="solbaslik" width="100">Contract ID</TD>
				<TD class="input" colSpan="3"><asp:textbox id="txt_search" tabIndex="2" runat="server" width="120"></asp:textbox></TD>
			</tr>
		</TABLE>
		<br>
		<asp:label id="lbl_output" runat="server" Height="14px" Font-Names="Tahoma" Font-Bold="True"
			ForeColor="#C00000" Font-Size="10pt" Width="608px"></asp:label><br>
		<asp:datagrid id="dg_ch" runat="server" Height="50px" Width="426px" ForeColor="Orange" GridLines="None"
			CellSpacing="1" CellPadding="3" BackColor="DarkCyan" BorderWidth="2px" BorderStyle="Ridge"
			BorderColor="BurlyWood" AutoGenerateColumns="False">
			<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#9471DE"></SelectedItemStyle>
			<AlternatingItemStyle Font-Size="9pt" ForeColor="DarkBlue" BackColor="#D0CA89"></AlternatingItemStyle>
			<ItemStyle Font-Size="9pt" Font-Names="Verdana" ForeColor="DarkBlue" BackColor="LemonChiffon"></ItemStyle>
			<HeaderStyle Font-Size="10pt" Font-Names="Verdana" Font-Bold="True" HorizontalAlign="Center"
				ForeColor="Orange" BackColor="DarkCyan"></HeaderStyle>
			<FooterStyle ForeColor="Black" BackColor="#C6C3C6"></FooterStyle>
			<Columns>
				<asp:BoundColumn DataField="CO_ID" HeaderText="CO_ID"></asp:BoundColumn>
				<asp:BoundColumn DataField="CH_STATUS" HeaderText="STATUS">
					<ItemStyle HorizontalAlign="Center"></ItemStyle>
				</asp:BoundColumn>
				<asp:BoundColumn DataField="ENTDATE" HeaderText="DATE">
					<ItemStyle Wrap="False"></ItemStyle>
				</asp:BoundColumn>
				<asp:BoundColumn Visible="False" DataField="CH_REASON" HeaderText="REASON_ID"></asp:BoundColumn>
				<asp:BoundColumn DataField="RS_DESC" HeaderText="REASON">
					<ItemStyle Wrap="False"></ItemStyle>
				</asp:BoundColumn>
				<asp:TemplateColumn HeaderText="SELECT REASON">
					<ItemTemplate>
						<asp:DropDownList id="cmb_reasons" runat="server" Width="232px"></asp:DropDownList>
					</ItemTemplate>
				</asp:TemplateColumn>
				<asp:TemplateColumn HeaderText="UPDATE">
					<ItemTemplate>
						<asp:Button id="Button1" runat="server" Text="Update" CausesValidation="false" CommandName="Edit"></asp:Button>
					</ItemTemplate>
					<EditItemTemplate>
						<asp:Button id="Button5" runat="server" Text="Update" CommandName="Update"></asp:Button>&nbsp;
						<asp:Button id="Button4" runat="server" Text="Cancel" CausesValidation="false" CommandName="Cancel"></asp:Button>
					</EditItemTemplate>
				</asp:TemplateColumn>
			</Columns>
			<PagerStyle HorizontalAlign="Right" ForeColor="Black" BackColor="#C6C3C6"></PagerStyle>
		</asp:datagrid>
		<SCRIPT src="/ccapps/web/js/buttonset.js"></SCRIPT>
		<script>begin();link("Search","search");end();</script>
	</form>
</HTML>
